import request from "@/axios/request";
import url from "@/axios/url";
const { mesUrl, adminUrl } = url();
// 导出url
export const exportClearingRecordUrl = `${mesUrl}mesCapacityCodePrintHistory/export`;
export const exportCapacitycodeClearUrl = `${mesUrl}mesProdCapacityCodeClearLog/export`;

//记录列表分页查询
export function getCapacitycodeHistoryList (params = {}) {
  return request({
    url: `${mesUrl}mesCapacityCodePrintHistory`,
    method: "get",
    params,
  });
}

//清除列表分页查询
export function getCapacitycodeClearList (params = {}) {
  return request({
    url: `${mesUrl}mesProdCapacityCodeClearLog`,
    method: "get",
    params,
  });
}

// 获取是否
export function getYesOrNot () {
  return request({
    url: `${adminUrl}dict/type/yes_or_not`,
    method: "get",
  });
}

// 查询打印类型：0正常打印 1补码打印(数据字典)列表
export function getPrinttypeList () {
  return request({
    url: `${adminUrl}dict/type/printType`,
    method: "get",
  });
}

// 查询打印条码模板名称列表
export function getBarcodePrintTempList (data = {}) {
  return request({
    url: `${adminUrl}printTemplate/getTempList`,
    method: "post",
    data,
  });
}
